<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<title><?php echo ($name); ?></title>
<script src="__APP__/statics/jquery-1.9.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="__APP__/statics/css/jNotify.jquery.css" />
<script type="text/javascript" src="__APP__/statics/jNotify.jquery.js"></script>
<style>
 body{font-family:"微软雅黑";font-size:12px;color:#666666;background-color:#F9F9F6}
 *{margin: 0;} 
 a{text-decoration:none}
 img{border:0px}
.cat{background-color:#F9F9F6;margin-left:10px;z-index:0;}
.cat_list:hover{background-color:#fff;}
.title{background:url("__APP__/statics/tbg.gif");font-weight:bold}

#save{text-align:center;border:0;width:100%;height:40px;background-color:#fff;position:fixed;left:0px;bottom:0px;z-index:999;border:1px solid #DFDFDF;background-color:#DFDFDF;padding:5px;height:20px}
</style>

<style>
input{padding:6px;}
.title{background:#E2E8EB;width:180px;text-align:right;}
</style>
<table border="0" width="700px" align="center" cellspacing="3" cellpadding="3">
	<tr>
		<td class="title">商城名称：</td>
		<td><input type="text" name="web_name" size="20" value="<?php echo ($web_name); ?>"></td>
	</tr>
	<tr>
		<td class="title">列表页商品显示数：</td>
		<td><input type="text" name="list_size" size="20" value="<?php echo ($list_size); ?>"></td>
	</tr>
	<tr>
		<td class="title">商品评论每页显示数：</td>
		<td><input type="text" name="comment_size" size="20" value="<?php echo ($comment_size); ?>"></td>
	</tr>
	<tr>
		<td class="title">Cookie有效期：</td>
		<td><input type="text" name="cookie_time" size="20" value="<?php echo ($cookie_time); ?>"></td>
	</tr>
	<tr>
		<td class="title">网站备案号：</td>
		<td><input type="text" name="icp" size="20" value="<?php echo ($icp); ?>"></td>
	</tr>
</table>


<div id="save"><input type="button" id="change" value="保存修改" style="padding:2px"></div>

<script>
$("#change").click(function(){
   var name=$("[name=web_name]").val();
   var list_size=$("[name=list_size]").val();
   var comment_size=$("[name=comment_size]").val();
   var cookie_time=$("[name=cookie_time]").val();
   var icp=$("[name=icp]").val();
   
   $.ajax({
        type:"POST",
		url:"__URL__/systems_save",
		dataType:"json",
		data:{"name":name,"list_size":list_size,"comment_size":comment_size,"cookie_time":cookie_time,"icp":icp},
		success:function(data){
		    jSuccess("<strong>修改成功！</strong>",{TimeShown : 500,VerticalPosition : 'center',HorizontalPosition : 'center',onClosed:function(){location.reload();}})
       }
   })
})


</script>